package game.level.service.impl;

import java.util.List;
import java.util.Map;

import game.level.dao.IALevelDao;
import game.level.dao.impl.ALevelDaoImpl;
import game.level.pojo.ALevel;
import game.level.service.IALevelService;

public class   ALevelServiceImpl implements IALevelService
{
	/*父类引用指向子类对象*/
	private IALevelDao levelDao = new ALevelDaoImpl();
	
	public int insertOneLevelService(ALevel level)
	{
		return this.levelDao.insertDao(level);
	}

	public int updateOneLevelService(ALevel level)
	{
		return this.levelDao.updateDao(level);
	}

	public int deleteOneLevelService(ALevel level)
	{
		return this.levelDao.deleteDao(level);
	}

	public ALevel findOneLevelService(Map<String, Object> condMap)
	{
		return this.levelDao.findOneDao(condMap);
	}

	public List<ALevel> findOneListLevelService(Map<String, Object> condMap)
	{
		return this.levelDao.findCondListDao(condMap);
	}

}
